<html>
<head>
    <title>SWF Tests</title>
	<link type="text/css" rel="stylesheet" href="../../../build/logreader/assets/skins/sam/logreader.css" />
	<script type="text/javascript" src="../../../build/yui/yui.js"></script>
</head>
<body>
<h1>SWF Tests</h1>
<div id="testdiv" style="height:400px;width:550px">
This content will be replaced by an instance of a Flash player.
</div>
<script>

YUI({
    base: '../../../build/',
    filter: "raw",
	modules:  { 
		swfdetect: { 
			path: "swfdetect/swfdetect.js" 
		},
		swf: {
			path: "swf/swf.js"
		}
	}
}).use('node', 'event-custom', 'swfdetect', 'swf', function (Y) {

var params = {version: "9.0.115",
	          useExpressInstall: false,
	          fixedAttributes:
			  {allowScriptAccess:"always", allowNetworking:"all", width:50},
			  flashVars:
			  {flashvar1: "One word", flashvar2: "A word & another", flashvar3: "Three words - 100% done & done"}
			 };

var newswf = new Y.SWF("#testdiv", "assets/Simple.swf?x=" + Math.floor(Math.random()*100000), params);
newswf.on("swfReady", talkToFlash);


function talkToFlash (e) {
	newswf.callSWF("addText", ["\nExternalInterface bridge is working.\n"]);	
}

});

</script>

</body>
</html>
